package com.fang.networkdisk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fang.common.common.CommonPage;
import com.fang.networkdisk.entity.bo.PermissionBo;
import com.fang.networkdisk.entity.po.TbNetDisPermission;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author Bernie_fang
 * @since 2024-12-07
 */
public interface TbNetDisPermissionService extends IService<TbNetDisPermission> {

    /**
     * Description:
     *
     * @param code:
     * @Author: Bernie_fang
     * @Since: 2024/12/9 22:30
     * @return: List<TbNetDisPermission>
     **/
    public TbNetDisPermission getPermissionsByCode(String code);

    /**
     * Description:
     *
     * @param permission:
     * @Author: Bernie_fang
     * @Since: 2024/12/9 22:30
     * @return: int
     **/
    public int updatePermissionsById(PermissionBo permission);

    /**
     * Description:
     *
     * @param id:
     * @Author: Bernie_fang
     * @Since: 2024/12/9 22:30
     * @return: int
     **/
    public int deletePermissionsById(Integer id, String authorId);

    /**
     * Description:
     *
     * @param permission:
     * @Author: Bernie_fang
     * @Since: 2024/12/9 22:30
     * @return: int
     **/
    public int addPermissions(PermissionBo permission);

    public CommonPage queryPermission(PermissionBo permissionBo);

}
